<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    '[user]' => [
        'signIn' => 'index/user/signIn',
        'signOn' => 'index/user/signOn',
        'checkLogins' => 'index/user/checkLogin',
        'layout' => 'index/user/layout',
        'edit' => 'index/user/edit',
        ':id' => 'index/user/getUserById',
        'getUsersByKey' => 'index/User/getUsersByKey'


    ],
    '[department]' => [
        'add' => 'index/department/add',
        'edit' => 'index/department/edit',
        'del' => 'index/department/del'
    ],
    '[friend_group]' => [
        'getList' => 'index/Friend/getGroup',
        'add' => 'index/Friend/addGroup',
        'edit' => 'index/Friend/editGroup',
        'del' => 'index/Friend/delGroup',
        'getGroupAndFriend' => 'index/Friend/getGroupAndFriend'
    ],
    '[friend]' => [
        'getUserList' => 'index/Friend/getFriendByUser',
        'agreeFriend' => 'index/Friend/agreeFriend',
        'del' => 'index/Friend/delFriend',
        'pushFriend' => 'index/Friend/pushFriend',
        'getFriendPush' => 'index/Friend/getFriendPush',
        'refusePush' => 'index/Friend/refusePush',
        'editFriend' => 'index/Friend/editFriend',
        'getFriendById' => 'index/Friend/getFriendById',
        'getFriendEditGroup' => 'index/Friend/getFriendEditGroup',
        'getUsersByKey' => 'index/Friend/getUsersByKey'
    ],
    '[chat]' => [
        'getUser' => 'index/UserChat/getChat',
        'getChat' => 'index/Chat/getChat',
        'sendUserChat' => 'index/Chat/sendUserChat',
        'sendGroupChat' => 'index/Chat/sendGroupChat',
        'recallChat' => 'index/Chat/recallChat',
        'getChatList' => 'index/Chat/getChatList',
        'readChat' => 'index/Chat/readChat'
    ],
    '[group_chat]' => [
        'createGroupChat' => 'index/GroupChat/createGroupChat',
        'getMyJoinGroupChat' => 'index/GroupChat/getMyJoinGroupChat',
        'getMyCreateGroupChat' => 'index/GroupChat/getMyCreateGroupChat',
        'getGroupUserList' => 'index/GroupChat/getGroupUserList',
        'joinGroupChat' => 'index/GroupChat/joinGroupChat',
        'dismissGroupChat' => 'index/GroupChat/dismissGroupChat',
        'moveUser' => 'index/GroupChat/moveUser',
        'upgradeGroupChat' => 'index/GroupChat/upgradeGroupChat'
    ],
    '[util]' => [
        'uploadImg' => 'index/util/uploadImg',
        'getAddress' => 'index/util/getAddress',
        'getProvince' => 'index/util/getProvince',
        'getCity' => 'index/util/getCity',
        'getArea' => 'index/util/getArea',
        'getUserAddress' => 'index/util/getUserAddress'
    ],
    '[admin]' => [
        'getAllUserByPage' => 'admin/User/getAllUserByPage',
        'getAllName' => 'admin/User/getAllName',
        'editUser' => 'admin/User/edit',
        'getAllDepartment' => 'admin/Department/getAllDepartment',
        'addDepartment' => 'admin/Department/addDepartment',
        'editDepartment' => 'admin/Department/editDepartment',
        'delDepartment' => 'admin/Department/delDepartment'

    ]
];
